The amount of an allowance, without TAX.
返金金額(税抜き)。


About

Syntax binding
ubl:Invoice / cac:InvoiceLine / cac:AllowanceCharge / cbc:Amount
Restricted Syntax Cardinality
1..1
Example
100
Attribute(s)
@currencyID
UBL 2.1
XPath
/ Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:Amount
Occurrence
1
Datatype
AmountType
UBL Definition
The monetary amount of this allowance or charge to be applied.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Invoice line allowance amount

請求書明細行の返金金額(税抜き)
ID
ibt-136
Description
The amount of an allowance, without TAX.
返金金額(税抜き)。
Aligned Cardinality
1..1
Semantic datatype
Amount

Code list

ISO4217
ISO 4217 Currency codes

Child element

  ID Business term Sem. Card. Syntax Card. XPath
  1..1 1..1 / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:Amount / @currencyID

VERSION 1.0 RULE

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULE
JP PINT 0.9.3 Shared rule
ibr-041(fatal)
Unchanged
Same as 0.9.2

VERSION 0.9.2 RULES
JP PINT 0.9.2 Aligned rule
aligned-ibrp-053(fatal)
Obsoleted
[aligned-ibrp-053]-Invoice line net amount (ibt-131) MUST equal (Invoiced quantity (ibt-129) * (Item net price (ibt-146)/item price base quantity (ibt-149)) + Sum of invoice line charge amount (ibt-141) - sum of invoice line allowance amount (ibt-136).
context
cac:InvoiceLine |
cac:CreditNoteLine
test
(exists(cac:Price/cbc:BaseQuantity) and
  u:slack(xs:decimal(cbc:LineExtensionAmount), xs:decimal(((cbc:InvoicedQuantity|cbc:CreditedQuantity) * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity)) +
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount) -
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)), 0.02)) or
(
  not(
    exists(cac:Price/cbc:BaseQuantity)) and
  u:slack(xs:decimal(cbc:LineExtensionAmount), xs:decimal(((cbc:InvoicedQuantity|cbc:CreditedQuantity) * cac:Price/cbc:PriceAmount) +
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount) -
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)), 0.02
  )
)
JP PINT 0.9.2 Shared rule
ibr-041(fatal)
Still valid
[ibr-041]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance amount (ibt-136).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
test
exists(cbc:Amount)
Code list rule (Shared rule)
ibr-cl-03 (fatal)
[ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3.
Context
cbc:Amount
Test
(
  (
    not(contains(normalize-space(@currencyID), ' ')) and
    contains(' AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWL ',
      concat(' ', normalize-space(@currencyID), ' ')
    )
  )
)

VERSION 0.9.1 RULE
Obsoleted
Shared rule (0.9.1)
ibr-041 (fatal)
[ibr-041]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance amount (ibt-136).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
test
exists(cbc:Amount)
Code list rule (Shared rule)
ibr-cl-03 (fatal)
[ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3.
Context
cbc:Amount
Test
(
  (
    not(contains(normalize-space(@currencyID), ' ')) and
    contains(' AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWL ',
      concat(' ', normalize-space(@currencyID), ' ')
    )
  )
)

JP PINT 0.9 RULES
Obsoleted
Aligned Rules (0.9)
jp-br-09(fatal)
[jp-br-09]-Invoice line net amount (ibt-131) = Item net price (ibt-146) X Invoiced quantity (ibt-129) ÷ Item price base quantity (ibt-149) + Invoice line charge amount (ibt-141) – Invoice line allowance amount (ibt-136).
context
/ubl:Invoice[cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'JP' ]/cac:InvoiceLine
test
(exists(cac:Price/cbc:BaseQuantity) and
  (
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity) +
        cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount -
        cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity) +
        cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount)) or
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity) -
        cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity))))) or
(
  not(
    exists(cac:Price/cbc:BaseQuantity)) and
  (
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount +
        cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount -
        cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount +
          cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount))) or
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount -
          cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount))) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount))
    )
  )
)
Shared Rules (0.9)
ibr-41(fatal)
[ibr-41]-Each Invoice line allowance (ibg-27) shall have an Invoice line allowance amount (ibt-136).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
test
exists(cbc:Amount)

PEPPOL BIS BILLING 3.0 RULES
EN16931 model bound to UBL rules
BR-41 (fatal)
Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
test
exists(cbc:Amount)
BR-DEC-24 (fatal)
The allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2.
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
test
string-length(substring-after(cbc:Amount,'.'))<=2